        Keithley Model 2000 DMM TestPoint Library
        -----------------------------------------

        Updated 12/21/98

        Users Notes:            

        The 2000 TestPoint Library K2000GV3.TST and K2000SV3.TST is a set
        of User Defined Objects that provide the user with pre-defined
        actions that can be used to program the 2000 for a variety of
        functions. The K2000GV3.TST library is dedicated for GPIB users and
        K2000SV3.TST is dedicated for RS-232 users and both are compatible
        with TestPoint 3.X and higher. Both libraries contain improvements
        to the libraries not found in earlier versions. If you are currently
        using any earlier versions of the library, do not replace the
        library in your application with K2000GV3.TST or K2000SV3.TST unless
        you plan on changing your application. Both K2000GV3.TST and
        K2000SV3.TST are not direct replacements for earlier 2000 TestPoint
        libraries for GPIB and RS-232 use.

        For GPIB users, the default IEEE-488 address of the 2000 is set at 
        the factory for 16. The 2000 Library is set for the default address 
        of 16. Should you wish to change the 2000 library address to 
        something other than 16, double-click on the 2000 icon. You can 
        change the address to the specific address you wish to use.
        K2000GV3.TST also provides the capability to change the GPIB
        Timeout.

        For RS-232 users, the defaults are as follows:
        Com Port = 1
        2000 Baud Rate = 9600
        Hardware Handshake = No
        Xon, Xoff = Yes
        Timeout = 40
        Should you wish to change the Com Port function to something
        other than the defaults, double-click on the 2000 icon. You can
        change the function to the desired settings. Make sure that your
        2000 settings agree with what you choose, otherwise, errors will
        occur.

        The actions pre-defined for the 2000 Library are as follows:

        Set Port            (Applies to K2000SV3.TST Only)
        Close Port          (Applies to K2000SV3.TST Only)
        Reset 2000
        Get ASCII Reading             
        Get Binary Reading  (Not applicable to K2000SV3.TST)           
        Data Buffer Operations =====> Setup Data Buffer
                                      Read ASCII Buffer  
                                      Read Binary Buffer (Not Applicable for
                                                          K2000SV3.TST)
                                      Read Buffer Math
        One-Shot Measurement Function
        Configure Math Functions ===> Setup Math Functions
                                      Setup Buffer Math
        Limit Testing ==============> Setup Limits
                                      Re-perform Limit Test
                                      Clear Limits1 Failed Test
                                      Get Limits1 Test Result
        Display Control
        Setup Data Formats
        Scanner Functions ==========> Open All Relays
                                      Close Internal Channel
                                      Setup Scanner Function
        Configure / Set DMM ========> DC Volts 
                                      DC Amps
                                      AC Volts
                                      AC Amps
                                      2-Wire Ohms
                                      4-wire Ohms
                                      Temperature=> Set for Thermocouple
                                                    Set Measurement Parameters
                                      Frequency / Period
                                      Diode / Continuity
        Triggering Functions =======> Setup Triggering
                                      Halt Triggering
                                      Start One Trigger Cycle
                                      Start Continuous Triggering
                                      Send Bus Trigger
        Set Measurement Units
        Set System Functions
        Error Message Handling and Control
                             =======> Read Error Messages
                                      Clear Error Message Queue
                                      Clear Status
        Status Register Control ====> Set Measurement Status Register
                                      Set Operation Status Register
                                      Set Questionable Status Register
                                      Query Measurement Event Status
                                      Query Operation Event Status
                                      Query Questionable Event Status
                                      Set SRQ Function
                                      Reset Registers to Default State



        When creating your application, the 2000 Icon is dragged from the
        Object List into the Action List. When this process is performed,
        the above list of selections is provided. The user can then select
        the action to perform on the 2000. The actions are described below:

        'Set Port'
         --------
        This action opens the selected RS-232 port, sets the baud rate, and
        sets up the Com Port for Handshaking. These settings can be changes
        by double-clicking on the 2000 ICON. This action is available only
        in K2000SV3.TST.

        'Close Port'
         ----------
        This action closes the RS-232 Com Port. This action is available only
        in K2000SV3.TST.
        
        'Reset 2000'
         ----------
        Reset sends the *RST command to the 2000. This action performs a 
        complete reset on the 2000 in compliance with the IEEE-488.2
        specification. *RST turns the Trigger Model completely off. To turn
        the Trigger Model back on, use the 'Start One Trigger Cycle' action
        or the 'Start Continuous Triggering' action for continuous mode.
        Using Reset also programs the 2000 to return readings only, not 
        any of the other possible data elements such as Channel, Units,
        etc.


        'Get ASCII Reading'  
         -----------------
        Get Reading performs the action of reading a single value from the
        2000 using ASCII data transfer.


        'Get Binary Reading'  
         ------------------
        Get Reading performs the action of reading a single value from the
        2000 using Binary data transfer. This is not available with 
        K2000SV3.TST.
        
        
        'Data Buffer Operations =====>   Setup Data Buffer'
         -------------------------------------------------
        This action sets up the data buffer to store data. The user can
        choose the buffer source of NONE, NEXT , or ALWAYS storing, the
        number of points to store up to 1024, and where the data will come
        from, either the INPUT, CALC block, or NONE.


        'Data Buffer Operations =====>   Read ASCII Buffer'  
         -------------------------------------------------  
        Read Buffer returns the contents of the 2000's internal data buffer.
        A total of 1024 readings can be returned, along with other data such
        as the Channel Number and Units. This information had to be set 
        previously by using the 'Setup Data Formats' action. This action 
        can return up to 524,288 bytes.


        'Data Buffer Operations =====>   Read Binary Buffer' 
         --------------------------------------------------
        Read Buffer returns the contents of the 2000's internal data buffer.
        A total of 1024 readings can be returned, along with other data such
        as the Channel Number and Units. This information had to be set 
        previously by using the 'Setup Data Formats' action. This action 
        can return up to 524,288 bytes. Uses Binary Data Transfer. This is
        not available with K2000SV3.TST.


        'Data Buffer Operations =====>   Read Buffer Math'
         ------------------------------------------------
        This action returns the results of any Math performed on the 
        internal data buffer.


        'One-Shot Measurement Function'
         -----------------------------
        This action allows the user to single shot the 2000 for any of the
        measurement functions supported in the 2000. It will set the 
        desired measurement function, then return a reading.


        'Configure Math Functions ===>   Setup Math Functions'
         ----------------------------------------------------
        This action allows the user to setup the 2000 for math operations.
        These operations include 'Percent' and 'mX+b'. The percent target
        value, the value of 'm' and 'b' are user selectable. Also, you can 
        set the units that will appear on the display when using the 'mX+b'
        function.


        'Configure Math Functions ===>   Setup Buffer Math'
         -------------------------------------------------
        This action allows the user to set up the 2000 to perform a math
        operation on the data stored in the internal data buffer. The math
        functions to choose from include Mean, Standard Deviation, 
        Maximum, Minimum.


        'Limit Testing ==============>   Setup Limits'
         --------------------------------------------
        This action allows the user to set the 2000 for limit testing. The
        user can set two levels of upper and lower limits.


        'Limit Testing ==============>   Re-perform Limit Test'
         -----------------------------------------------------
        This action re-performs a limit test.


        'Limit Testing ==============>   Clear Limits1 Failed Test'
         ---------------------------------------------------------
        This action clears a Limits1 failed indication.


        'Limit Testing ==============>   Get Limits1 Test Result'
         -------------------------------------------------------
        This action returns the result of the Limits1 test.


        'Display Control'
         ---------------
        This action allows the user to put messages on the front panel
        display or completely turn the display off.


        'Setup Data Formats'
         ------------------
        This action allows the user to set the 2000 to return the data using
        either ASCII or binary data formats. Also, the user can select the
        type of reading information to be returned. The 2000 will always
        return a reading, but can be appended with the Channel Number
        and Units. In Binary Mode, most users should select the SWAPPED
        data format option when using PC's in order for the data to be
        properly transferred.


        'Scanner Functions ==========>   Open All Relays'
         -----------------------------------------------
        This action opens all relays on an internal scanner card installed
        in the 2000.


        'Scanner Functions ==========>   Close Internal Channel' 
         ------------------------------------------------------
        This actions allows the user to close a specific channel on an 
        installed scanner card. The user can select a channel from 1 to 20.
        Note that only the Model 2000-20 only supports channels 11-20. 


        'Scanner Functions ==========>   Setup Scanner Function' 
         ------------------------------------------------------
        This action allows the user to select the scanner from NONE, 
        Internal, or External. If Internal is selected, a scan list can be
        defined for the 2000.


        'Configure / Set DMM ========>   DC Volts ==> DC Volts Setting'
         -------------------------------------------------------------
        This action allows the user to select the DC Volts measurement
        function. The user can set the resolution, measurement range, 
        autoranging, number of power line cycles for A/D integration, 
        filter count, Repeat or Moving filter type, and turning the 
        filter on or off.


        'Configure / Set DMM ========>   DC Amps'
         ---------------------------------------
        This action allows the user to select the DC Amps measurement
        function. The user can set the resolution, measurement range, 
        autoranging, number of power line cycles for A/D integration, 
        filter count, Repeat or Moving filter type, and turning the 
        filter on or off.


        'Configure / Set DMM ========>   AC Volts'
         ----------------------------------------
        This action allows the user to select the DC Volts measurement
        function. The user can set the resolution, measurement range, 
        autoranging, number of power line cycles for A/D integration, 
        filter count, Repeat or Moving filter type, and turning the 
        filter on or off. In addition, the user can select the AC Low
        Frequency Bandwidth of 3, 30, or 300 Hertz.


        'Configure / Set DMM ========>   AC Amps'
         ---------------------------------------
        This action allows the user to select the AC Amps measurement
        function. The user can set the resolution, measurement range, 
        autoranging, number of power line cycles for A/D integration, 
        filter count, Repeat or Moving filter type, and turning the 
        filter on or off. In addition, the user can select the AC Low
        Frequency Bandwidth of 3, 30, or 300 Hertz.


        'Configure / Set DMM ========>   2-Wire Ohms'
         -------------------------------------------
        This action allows the user to select the 2-wire Ohms measurement
        function. The user can set the resolution, measurement range, 
        autoranging, number of power line cycles for A/D integration, 
        filter count, Repeat or Moving filter type, and turning the 
        filter on or off. In addition, the user can also select an
        Offset Compensation measurement mode.


        'Configure / Set DMM ========>   4-Wire Ohms'
         -------------------------------------------
        This action allows the user to select the 2-wire Ohms measurement
        function. The user can set the resolution, measurement range, 
        autoranging, number of power line cycles for A/D integration, 
        filter count, Repeat or Moving filter type, and turning the 
        filter on or off. In addition, the user can also select an
        Offset Compensation measurement mode and a Dry Circuit mode.


        'Configure / Set DMM =====> Temperature => Set for Thermocouples'
         -------------------------------------------------------------------
        This action sets the 2000 for using thermocouples. The user can
        select the Thermocouple type including J, K, and T. The user can
        select the reference type, a simulated reference value, temperature 
        units, the Temperature Coefficient and Voltage Offset of a real
        reference junction.
        Simulated Reference Temperature Ranges: 
        C=> 0 to 50,  F=> 32 to 122,  K=> 273 to 323


        'Configure / Set DMM =====> Temperature => Set Measurement Parameters'
         ---------------------------------------------------------------------
        This action sets measurement parameters when making temperature
        measurement. You can set the temperature resolution, integration rate
        (NPLC), filter count, Repeat or Moving filter type, and turning the 
        filter on or off. 



        'Configure / Set DMM =====> Set Frequency/Period Function'
         --------------------------------------------------------
        This action allows the user to set the 2000 for Frequency or 
        Period measurements. The user can set the Voltage Threshold Range,
        the frequency aperture, and the resolution.


        'Configure / Set DMM =====> Set Diode/Continuity Function'
         --------------------------------------------------------
        This action allows the user to choose between either a Diode 
        Measurement function or Continuity Measurement function. The user
        can set the Diode Current Range and the Continuity Threshold.


        'Trigger Functions =======> Setup Triggering'
         -------------------------------------------
        This action allows the user to set the various modes of triggering
        that the 2000 can use. Settable is the Trigger Source which includes
        Immediate, External, Timer, and Bus. The user can set the Trigger
        Count, Delay, Timer value, and Sample Count.


        'Trigger Functions =======> Halt Triggering'
         ---------------
        This action stops any triggering of the 2000 and places the 2000 in 
        the idle mode.


        'Start One Trigger Cycle'
         ----------------
        This action is used to start the triggering process in the 2000. It
        takes the 2000 out of the idle mode. Once the trigger count has been
        reached, the 2000 will go back into the IDLE mode.


        'Start Continuous Triggering'
         ----------------
        This action is used to start the triggering process in the 2000. It
        takes the 2000 out of the idle mode. This action allows the 2000 to
        trigger continuously. Using the Halt Triggering action will stop the
        2000 triggering.

                
        'Set Measurement Units'
         ---------------------
        This actions allows the user to set various engineering units for 
        the 2000. The user can set the AC or DC units to Volts, dB,
        or dBM. Also settable is the reference value used for the dB and
        dBM units. 


        'Set System Function'
         -------------------
        This action allows the user to set various system function of the
        2000. In particular, you can set the Auto-Zero function on or off 
        and turn the internal beeper on or off.

        'Error Message Handling and Status Control ---> Read Error Messages'
        ------------------------------------------------------------------
        This action returns the contents of the error message queue.


        'Error Message Handling and Status Control 
                                             --> Clear Error Message Queue'
        ------------------------------------------------------------------
        This action clears the error message queue.


        'Error Message Handling and Status Control ---> Clear Status'
         -----------------------------------------------------------
        This action clears all the status registers.


        Status Register Operations -> Enable Status Registers
                                                      -> Measurement Status
        -------------------------------------------------------------------
        This action sets up the Measurement Status Enable register so that
        the instrument can SRQ on a bit in the measurement register.


        Status Register Operations -> Enable Status Registers
                                                        -> Operation Status
        -------------------------------------------------------------------
        This action sets up the Operation Status Enable register so that the
        instrument can SRQ on a bit in the Operation register.


        Status Register Operations -> Enable Status Registers
                                                    -> Questionable Status
        ------------------------------------------------------------------
        This action sets up the Questionable Status Enable register so that
        the instrument can SRQ on a bit in the trigger register.


        Status Register Operations -> Query Register Status
                                             -> Query Measurement Status
        ----------------------------------------------------------------
        This action returns the status bits that are latched in the
        Measurement status register.


        Status Register Operations -> Query Register Status
                                             -> Query Operation Status
        ---------------------------------------------------------------
        This action returns the status bits that are latched in the
        Operation status register.


        Status Register Operations -> Query Register Status
                                                -> Query Questionable Status
        -------------------------------------------------------------------
        This action returns the status bits that are latched in the
        Questionable status register.


        Status Register Operations -> Set SRQ Function
        ----------------------------------------------
        This action sets up the 6517A to SRQ on an event in the measurement,
        operation, questionable registers and event summary, message
        available, and error available situations.

        Status Register Operations -> Reset Registers to Default State
        --------------------------------------------------------------
        This action resets all of the status registers to their power-on
        settings.



        =================================================================
        Notes:


        DEMO MODE: Should the user wish to place the 2000 into the
        DEMO MODE, you can double-click the 2000 icon and check the DEMO 
        MODE box.

        Setup Data Format: The 2000 can return a variety of reading
        elements back to TestPoint. The 2000 will return more than just the
        reading if the reading elements controls have been set to 'Yes' or
        'On'. Sending *RST resets the elements back to Reading Element only.
        Beware of unwanted characters. TestPoint may display square 
        characters after the reading or in-between reading elements. These
        characters are hidden characters, generally carriage return and
        line feed characters, and perhaps commas. This mostly occurs when
        a TestPoint display is displaying numeric data, not string data. The
        K2000GV3.TST library was written such that the data is returned as 
        string data and the unwanted characters are removed. K2000GV3.TST
        returns data as a Vector of String and Number if Binary data
        transfers are used.


        The library covers a large percentage of the 2000 operation but
        not 100% of all of the functions. Any function of the 2000 can be
        programmed using a GPIB object in your application and programmed
        directly. For further assistance on programming the 2000, you can
        contact any local Keithley office for technical assistance. In 
        addition, you can contact Keithley Instruments with your questions
        by browsing throught the Keithley World Wide Web page on the 
        Internet. The URL is:  http://www.keithley.com

